package com.ittest.bean;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnNotWebApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.stereotype.Component;

@Component("Tom")
//@ConditionalOnClass(name ="com.ittest.bean.Mouse")
//@ConditionalOnMissingClass("com.ittest.bean.Mouse")
@ConditionalOnBean(name = "jerry")
//@ConditionalOnMissingClass("com.ittest.bean.Dog")
@ConditionalOnNotWebApplication
//@ConditionalOnWebApplication
public class Cat {
}
